﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Search.ascx.cs" Inherits="Widgets_Search" %>
<fieldset class="rounded shadow">
    <legend class="rounded"><%=this.Title %></legend>
    <div class="box">
        <asp:TextBox ID="txtKeyword" runat="server" Width="280px"></asp:TextBox><br />
        <input type="button" id="btnSearch" class="btn btn-success" value="Tìm kiếm" onclick="return doSearch()" />
        <hr />

        <asp:Literal ID="lblParams" runat="server"></asp:Literal>
    </div>
</fieldset>
<script type="text/javascript">



    function doSearch() {
        // var filter = document.timkiem.search.options[document.timkiem.search.selectedIndex].value;
        var tukhoa = $("#txtKeyword").val();
        if (tukhoa.length == 0) {
            alert('Nhập từ khóa cần tìm...');
            return false;
        }
        else {
            var url = "/search/q=" + tukhoa;
            window.location = url;
            return true;
        }
    }
</script>
